package com.visikard.widget;

import android.content.Context;
import android.os.Handler;
import android.view.LayoutInflater;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.SlidingDrawer;
import android.widget.TextView;

import com.visikard.ui.R;

public class CouponListItemView extends RelativeLayout {

	public ImageView mImageView_coupon;
	public TextView mTextView_name;
	public TextView mTextView_expiration_date;
	public SlidingDrawer mSlidingDrawer;
	public Button mButton_edit, mButton_delete;
	public ImageView mImageView_arrow;

	public TextView mTextView_small_name, mTextView_percentoff, mTextView_expiredate;

	public int position = -1;
	public Handler handler;

	public CouponListItemView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		LayoutInflater li = (LayoutInflater) this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		li.inflate(R.layout.coupon_list_item, this, true);
		mImageView_coupon = (ImageView) findViewById(R.id.image_coupons_kard);
		mTextView_name = (TextView) findViewById(R.id.text_dertails_coupon);
		mTextView_expiration_date = (TextView) findViewById(R.id.text_expire_date);
		mSlidingDrawer = (SlidingDrawer) findViewById(R.id.drawer);
		mButton_delete = (Button) findViewById(R.id.btn_delete);
		mButton_edit = (Button) findViewById(R.id.btn_edit);
		mImageView_arrow = (ImageView) findViewById(R.id.handle);

		mTextView_small_name = (TextView) findViewById(R.id.small_name);
		mTextView_percentoff = (TextView) findViewById(R.id.small_percent_off);
		mTextView_expiredate = (TextView) findViewById(R.id.small_expire_date_Value);

	}

}
